function checkSub(){
	
	if(document.getElementById('auction_id').value==''){
		alert('');
		document.getElementById('auction_id').focus();
		return false;
	}
	
	if(document.getElementById('auction_name').value==''){
		alert('');
		document.getElementById('auction_name').focus();
		return false;
	}
	
	if(document.getElementById('auction_desc').value==''){
		alert('');
		document.getElementById('auction_desc').focus();
		return false;
	}
	
	if(document.getElementById('good_id').value==''){
		alert('');
		document.getElementById('good_id').focus();
		return false;
	}
	
	if(document.getElementById('start_date').value==''){
		alert('');
		document.getElementById('start_date').focus();
		return false;
	}
	
	if(document.getElementById('end_date').value==''){
		alert('');
		document.getElementById('end_date').focus();
		return false;
	}
	
	if(document.getElementById('start_price').value==''){
		alert('');
		document.getElementById('start_price').focus();
		return false;
	}
	
	if(document.getElementById('a_price').value==''){
		alert('');
		document.getElementById('a_price').focus();
		return false;
	}
	
	if(document.getElementById('rate_price').value==''){
		alert('');
		document.getElementById('rate_price').focus();
		return false;
	}
	
	if(document.getElementById('margin').value==''){
		alert('');
		document.getElementById('margin').focus();
		return false;
	}
	
	if(document.getElementById('user_id').value==''){
		alert('');
		document.getElementById('user_id').focus();
		return false;
	}
	
	if(document.getElementById('in_date').value==''){
		alert('');
		document.getElementById('in_date').focus();
		return false;
	}
	
	document.addForm.submit();
}

function search(){
	//TODO
	document.indexForm.submit();
}
